package com.example.anpuser.tempTestMQ;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(topic = "test-topic", consumerGroup = "user-service-consumer-group")
public class mqCumsumer implements RocketMQListener<String> {

    @Override
    public void onMessage(String string) {
        System.out.println("receive message: " + string);
    }
}
